<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.transitonbox{
				width: 100px;
				height: 100px;
				background-color: red;
				background-image: url(images/灰太狼.jpg);
				border: 5px solid;
			
			/*横向拉伸效果/执行时间2s*/
			transition: 2s;
			
			}			/*鼠标移入div触发动画执行*/
			.transitonbox:hover{
				height: 600px;/*拉伸到为100到300*/
				width: 600px;
				color: #228B22;
			
			
				}
		</style>
	</head>
	<body>
		<h3>拉伸盒子动画效果</h3>
	<h5>transition 有两个参数：拉伸方向</h5>
 
   <div class="transitonbox" ><h1>动起来</h1></div>	
	
	</body>
</html>
